﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Cinemax.DAO;
using Cinemax.DTO;
namespace Cinemax.UserControls
{
    public partial class wuc_update_fare : System.Web.UI.UserControl
    {
        public List<LoaiVeDTO> dsLoaiVe = new List<LoaiVeDTO>();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["maloaive"]!=null && Request.QueryString["giavemoi"]!=null)
            {
                int maLoaiVe = int.Parse(Request.QueryString["maloaive"]);
                double giavemoi = double.Parse(Request.QueryString["giavemoi"]);
                LoaiVeDAO.updateLoaiVe(maLoaiVe, giavemoi);
            }

            dsLoaiVe = LoaiVeDAO.getAllLoaiVe();
        }
    }
}